<?php TPL::output('admin/global/header.tpl.htm'); ?>
<!--left-->
<?php TPL::output('admin/global/left.tpl.htm'); ?>
<!--left-->

<div id="main-content" style="margin:0 0 0 200px;">
	<div class="clear"></div>
	<div class="content-box">
		<div class="content-box-header">
			<h3> 开放平台 </h3>
			<ul class="content-box-tabs">
			</ul>
			<div class="clear"></div>
		</div>
		<div class="content-box-content">
			<div id="notification_box" class="notification success png_bg" style="display:none;"> <a class="close" href="javascript:;"></a>
				<div name="notification_content"></div>
			</div>
			<div class="tab-content default-tab" id="tab1">
				<form id="_save_form" action="admin/setting/sys_save_ajax/" method="post">
					<fieldset>
					<p groupid="8" name="qq_login_enabled">
						<label>开启QQ登录功能：</label>
						<input type="radio" name="qq_login_enabled" value="Y" <?php if ($this->setting['qq_login_enabled'] == 'Y'){ ?> checked="true"<?php } ?>/>
						是
						<input type="radio" name="qq_login_enabled" value="N" <?php if ($this->setting['qq_login_enabled'] == 'N'){ ?> checked="true"<?php } ?>/>
						否 </p>
					<p style="color:#999;" name="qq_login_enabled" groupid="8">AppID与APPKey 需要到 <a href="http://connect.qq.com/" style="text-decoration: underline; color: blue;" target="_blank">QQ互联开放平台</a> 申请 (注意: 请申请网站不要申请应用)</p>
					<p groupid="8" name="qq_login_app_id">
						<label>QQ登录 AppID：</label>
						<input name="qq_login_app_id" class="text-input small-input" type="text" value="<?php echo $this->setting['qq_login_app_id']; ?>"/>
					</p>
					<p groupid="8" name="qq_login_app_key">
						<label>QQ登录 AppKey：</label>
						<input name="qq_login_app_key" class="text-input small-input" type="text" value="<?php echo $this->setting['qq_login_app_key']; ?>"/>
					</p>
					<p groupid="8" name="sina_akey">
						<label>新浪微博 AppKey(akey)：<span style="font-weight:normal;">(对应分享的来源网站)</span></label>
						<input name="sina_akey" class="text-input small-input" type="text" value="<?php echo $this->setting['sina_akey']; ?>"/>
					</p>
					<p style="color:#999;" name="sina_weibo_enabled" groupid="8">AppKey 需要到 <a href="http://open.weibo.com/" style="text-decoration: underline; color: blue;" target="_blank">新浪微博开放平台</a> 申请 (注意: 请申请网站不要申请应用)</p>
					<p groupid="8" name="sina_skey">
						<label>新浪微博 AppKey(skey)：</label>
						<input name="sina_skey" class="text-input small-input" type="text" value="<?php echo $this->setting['sina_skey']; ?>"/>
					</p>
					<p groupid="8" name="sina_weibo_enabled">
						<label>开启新浪微博登录功能：</label>
						<input type="radio" name="sina_weibo_enabled" value="Y" <?php if ($this->setting['sina_weibo_enabled'] == 'Y'){ ?> checked="true"<?php } ?>/>
						是
						<input type="radio" name="sina_weibo_enabled" value="N" <?php if ($this->setting['sina_weibo_enabled'] == 'N'){ ?> checked="true"<?php } ?>/>
						否 </p>
					<p groupid="8" name="qq_app_key">
						<label>腾讯微博 AppKey(app_key)：<span style="font-weight:normal;">(对应分享的来源网站)</span></label>
						<input name="qq_app_key" class="text-input small-input" type="text" value="<?php echo $this->setting['qq_app_key']; ?>"/>
					</p>
					<p style="color:#999;" name="qq_t_enabled" groupid="8">AppKey 需要到 <a href="http://open.t.qq.com/" style="text-decoration: underline; color: blue;" target="_blank">腾讯微博开放平台</a> 申请 (注意: 请申请网站不要申请应用)</p>
					<p groupid="8" name="qq_app_secret">
						<label>腾讯微博 AppKey(app_secret)：</label>
						<input name="qq_app_secret" class="text-input small-input" type="text" value="<?php echo $this->setting['qq_app_secret']; ?>"/>
					</p>
					<p groupid="8" name="qq_t_enabled">
						<label>开启腾讯微博登录功能：</label>
						<input type="radio" name="qq_t_enabled" value="Y" <?php if ($this->setting['qq_t_enabled'] == 'Y'){ ?> checked="true"<?php } ?>/>
						是
						<input type="radio" name="qq_t_enabled" value="N" <?php if ($this->setting['qq_t_enabled'] == 'N'){ ?> checked="true"<?php } ?>/>
						否 </p>
					<p>
						<input class="button" type="button" onclick="ajax_post($('#_save_form'), _form_process);" value="  保  存  " />
					</p>
					</fieldset>
					<div class="clear"></div>
				</form>
			</div>
		</div>
		<div class="clear"></div>
		<div id="notf_tip" style="display:none;" class="notification png_bg"> <a href="javascript:;" class="close"><img src="<?php echo G_STATIC_URL;?>/admin/images/icons/cross_grey_small.png" alt="关闭" /></a>
			<div id="notf_cont"></div>
		</div>
	</div>
	<!-- footer -->
	<?php TPL::output('admin/global/footer.tpl.htm'); ?>
	<!-- footer -->
</div>
<!-- main -->
</div>
</body></html>